package org.academic.texteditor.util;

public enum Unit {

	CENTIMETER(37.795275591),
	POLEGADA(96.0),
	PIXEL(1.0);
	
	private final double pixels;

	private Unit(double size) {
		this.pixels = size;
	}
	
	public double convert(double value) {
		return value * pixels;
	}
	
}
